package biz.impl;

import java.util.List;

import biz.MessagesBiz;
import dao.MessagesDao;
import dao.impl.MessagesDaoImpl;
import entity.Messages;

public class MessagesBizImpl implements MessagesBiz{
	MessagesDao md = new MessagesDaoImpl();
	
	@Override
	public void addMessage(Messages m) {
		md.addMessage(m);
	}

	@Override
	public List<Messages> getMessage(int pageNum, int pageSize) {
		return md.getMessage(pageNum,pageSize);
	}

	@Override
	public int getAllMessage() {
		return md.getAllMessage();
	}

}
